package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import com.zhonghui.mes.domain.MesPlannedProduction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;
@Getter
@Setter
public class MesProductionCompletionVo  extends BaseEntity {

  /** 编号 */
  private Long id;

  /** 单号 */
  @Excel(name = "单号")
  private String oddNumbers;

  /** 生产作业id */
  @Excel(name = "生产作业id")
  private Long jobId;

  /** 产品id */
  @Excel(name = "产品id")
  private Long materialId;

  /** 完工日期 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "完工日期", width = 30, dateFormat = "yyyy-MM-dd")
  private Date completionDate;

  /** 完工日期区间 */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "完工日期区间", width = 30, dateFormat = "yyyy-MM-dd")
  private List<Date> completionDateRange;

  /** 生产数量 */
  @Excel(name = "生产数量")
  private Long quantity;

  /** 生产批号 */
  @Excel(name = "生产批号")
  private String batchNumber;

  /** 状态 */
  @Excel(name = "状态")
  private Long status;

  /** 制造执行MES-计划排产信息 */
  private List<MesPlannedProduction> mesPlannedProductionList;

  //join material Table
  /** 产品 */
  @Excel(name = "产品")
  @ApiModelProperty("产品")
  private String materialName;

  /** 规格 */
  @Excel(name = "规格")
  @ApiModelProperty("规格")
  private String materialModel;

  /** 型号 */
  @Excel(name = "型号")
  @ApiModelProperty("型号")
  private String materialSpecifications;

  /** 单位 */
  @Excel(name = "单位")
  @ApiModelProperty("单位")
  private String materialUnit;

  // join plan production table
  @Excel(name = "计划号")
  private String planNumber;
}
